  export default function ({
  req,
  redirect,
  route
}) {
  if (process.server) {
    var mhttp = "m.1blv.cn"
    let userAgent = req ? req.headers['user-agent'] : navigator.userAgent || '' //获取客户端标识
    var isMobile = !!userAgent.match(/AppleWebKit.*Mobile.*/) //判断是pc端还是移动端
    // console.log(isMobile, pchttp, host, req.headers.host)
    if (isMobile) {
      return redirect('https://' + mhttp + route.fullPath)
    }
  }
}
